package com.sc.nft.admin.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class AddExchangeCastUpperLimitRequest {

    @ApiModelProperty(value = "生态铸造id")
    @NotNull(message = "生态铸造id不能为空")
    private Long ecologyCastId;

    @ApiModelProperty(value = "增加上限的数量")
    private Integer addCount =1;

    @ApiModelProperty(value = "道具卡id")
    @NotNull(message = "道具卡id不能为空")
    private Long equityPropsId;

    @ApiModelProperty(value = "消耗数量")
    @NotNull(message = "消耗数量不能为空")
    @Range(min = 1, message = "消耗数量最小为1")
    private Integer expendCount;

}
